package com.liuyang.concurrency.chapter7;

public class Test {
    public static void main(String[] args) {
        Synchronized2Runnable synchronizedRunnable = new Synchronized2Runnable();
        Thread t1 = new Thread(synchronizedRunnable,"一号窗口");

        Thread t2 = new Thread(synchronizedRunnable,"二号窗口");

        Thread t3 = new Thread(synchronizedRunnable,"三号窗口");

        t1.start();
        t2.start();
        t3.start();
    }
}
